from django.urls import path
from .views import (
    ListCanvasElementView,
    CreateCanvasElementView,
    CanvasElementDetailView,
    UpdateCanvasElementView,
    DeleteCanvasElementView
)

urlpatterns = [
    path('', ListCanvasElementView.as_view(), name='list_canvas_element'), # 元素列表
    path('create/', CreateCanvasElementView.as_view(), name='create_canvas_element'), # 创建元素
    path('detail/<str:element_id>/', CanvasElementDetailView.as_view(), name='canvas_element_detail'), # 元素详情
    path('update/', UpdateCanvasElementView.as_view(), name='update_canvas_element'), # 更新元素
    path('delete/', DeleteCanvasElementView.as_view(), name='delete_canvas_element'), # 删除元素
]
